.class public Lcom/waiqin365/lightapp/deptmanager/d/a;
.super Ljava/lang/Object;


# direct methods
.method public static a(Ljava/lang/String;)I
    .locals 4

    const/4 v0, 0x0

    invoke-static {p0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    move v1, v0

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v3, :cond_0

    add-int/lit8 v0, v1, 0x1

    :goto_1
    move v1, v0

    goto :goto_0

    :cond_0
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Ljava/lang/String;)I

    move-result v0

    add-int/2addr v0, v1

    goto :goto_1

    :cond_1
    move v1, v0

    :cond_2
    return v1
.end method

.method public static a(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/a;
    .locals 4

    const/4 v1, 0x0

    if-eqz p1, :cond_1

    if-eqz p0, :cond_1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-nez v3, :cond_2

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {p0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    :goto_1
    return-object v0

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v0

    if-eqz v0, :cond_2

    :goto_2
    move-object v1, v0

    goto :goto_0

    :cond_1
    move-object v0, v1

    goto :goto_1

    :cond_2
    move-object v0, v1

    goto :goto_2
.end method

.method public static a()V
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-nez v0, :cond_0

    :goto_0
    return-void

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Lcom/waiqin365/lightapp/deptmanager/c/a;)V

    goto :goto_0
.end method

.method public static a(Lcom/waiqin365/lightapp/deptmanager/c/a;)V
    .locals 5

    if-nez p0, :cond_1

    :cond_0
    return-void

    :cond_1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-static {v1}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_2
    :goto_0
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-nez v1, :cond_2

    move-object v1, v0

    check-cast v1, Lcom/waiqin365/lightapp/deptmanager/c/a;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    move-object v2, v0

    check-cast v2, Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v2, v2, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-static {v2}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Ljava/lang/String;)I

    move-result v2

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string/jumbo v4, ""

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Lcom/waiqin365/lightapp/deptmanager/c/a;)V

    goto :goto_0
.end method

.method public static b(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/a;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    const-string/jumbo v0, "-1"

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->a:Ljava/lang/String;

    invoke-virtual {v0, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    goto :goto_0

    :cond_2
    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->a(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v0

    goto :goto_0
.end method

.method public static b(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;
    .locals 4

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    if-eqz p0, :cond_2

    if-eqz p1, :cond_2

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v3, :cond_1

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/b;

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->b:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_1
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    goto :goto_0

    :cond_2
    return-object v1
.end method

.method public static b(Lcom/waiqin365/lightapp/deptmanager/c/a;)V
    .locals 5

    const/4 v2, 0x0

    if-nez p0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    move v1, v2

    :goto_1
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v4, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v4, :cond_2

    add-int/lit8 v0, v1, 0x1

    :goto_2
    move v1, v0

    goto :goto_1

    :cond_2
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    invoke-static {v0, v2}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    add-int/2addr v0, v1

    goto :goto_2

    :cond_3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c/a;->e:Ljava/lang/String;

    const-string/jumbo v0, "-1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/deptmanager/c/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/deptmanager/c/a;->b:Ljava/lang/String;

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/a;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Lcom/waiqin365/lightapp/deptmanager/c/a;)V

    goto :goto_0
.end method

.method public static c(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/b;
    .locals 4

    const/4 v1, 0x0

    if-eqz p0, :cond_3

    if-eqz p1, :cond_3

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v3, :cond_2

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/b;

    iget-object v3, v0, Lcom/waiqin365/lightapp/deptmanager/c/b;->a:Ljava/lang/String;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_0

    :goto_1
    return-object v0

    :cond_0
    move-object v0, v1

    :cond_1
    :goto_2
    move-object v1, v0

    goto :goto_0

    :cond_2
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->c(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    if-nez v0, :cond_1

    move-object v0, v1

    goto :goto_2

    :cond_3
    move-object v0, v1

    goto :goto_1
.end method

.method public static c(Ljava/lang/String;)Ljava/util/List;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->b(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    goto :goto_0
.end method

.method public static d(Ljava/lang/String;)Lcom/waiqin365/lightapp/deptmanager/c/b;
    .locals 1

    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/waiqin365/lightapp/deptmanager/w;->a:Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->c(Ljava/lang/String;Ljava/util/List;)Lcom/waiqin365/lightapp/deptmanager/c/b;

    move-result-object v0

    goto :goto_0
.end method

.method public static d(Ljava/lang/String;Ljava/util/List;)V
    .locals 3

    if-eqz p0, :cond_1

    if-eqz p1, :cond_1

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/c;

    iget-boolean v1, v0, Lcom/waiqin365/lightapp/deptmanager/c/c;->v:Z

    if-eqz v1, :cond_2

    move-object v1, v0

    check-cast v1, Lcom/waiqin365/lightapp/deptmanager/c/b;

    iget-object v1, v1, Lcom/waiqin365/lightapp/deptmanager/c/b;->a:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {p1, v0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_1
    return-void

    :cond_2
    check-cast v0, Lcom/waiqin365/lightapp/deptmanager/c/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/deptmanager/c/a;->a()Ljava/util/List;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/waiqin365/lightapp/deptmanager/d/a;->d(Ljava/lang/String;Ljava/util/List;)V

    goto :goto_0
.end method
